package ooday01;

public class CarExercise02Test {
    public static void main(String[] args) {
        CarExercise02 car1 = new CarExercise02();
        car1.brand="奔驰";
        car1.model="迈巴赫";
        car1.color="黑";
        car1.price=1500000;
        car1.letter= 'C';
        car1.introduce();

        CarExercise02 car2 = new CarExercise02("本田","雅阁","黑",250000,'C');
        car2.introduce();

        CarExercise02 car3 = new CarExercise02("奔驰","A8L",1000000);
        car3.carPrice();
    }
}
